package com.admin.kotlintest.utils

import com.google.gson.Gson

/**
 * Created by 吴昶 on 2018/4/18.
 */
class GsonUtils{

    companion object {

        fun <T> paresJsonWithGon(string: String,t :Class<T>):T{
            var gson=Gson()
            var result=gson.fromJson<T>(string,t)
            return result
        }
    }

}